/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: nu uc
 * License Type: Evaluation
 */
package org.testis.orm.classes;

import org.hibernate.Criteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class T_bed_deviceabstractionCriteria extends AbstractORMCriteria {
    public final IntegerExpression id;
    public final StringExpression name;

    public T_bed_deviceabstractionCriteria(Criteria criteria) {
	super(criteria);
	id = new IntegerExpression("id", this);
	name = new StringExpression("name", this);
    }

    public T_bed_deviceabstractionCriteria(PersistentSession session) {
	this(session.createCriteria(T_bed_deviceabstraction.class));
    }

    public T_bed_deviceabstractionCriteria() throws PersistentException {
	this(org.testis.orm.manager.TestisDbPersistentManager.instance()
		.getSession());
    }

    public T_bed_devicedefinitionsCriteria createT_bed_devicedefinitionsCriteria() {
	return new T_bed_devicedefinitionsCriteria(
		createCriteria("ORM_T_bed_devicedefinitions"));
    }

    public T_dmap_abstract_objectsCriteria createT_dmap_abstract_objectsCriteria() {
	return new T_dmap_abstract_objectsCriteria(
		createCriteria("ORM_T_dmap_abstract_objects"));
    }

    public T_bed_deviceabstraction uniqueT_bed_deviceabstraction() {
	return (T_bed_deviceabstraction) super.uniqueResult();
    }

    public T_bed_deviceabstraction[] listT_bed_deviceabstraction() {
	java.util.List list = super.list();
	return (T_bed_deviceabstraction[]) list
		.toArray(new T_bed_deviceabstraction[list.size()]);
    }
}
